import request from '@/utils/request'

// 查询单位列表
export function listAllUnitmeasure(){
  return request({
    url: '/common/selectAll',
    method: 'get'
  })
}

// 查询仓库信息
export function getWarehouseInfo(){
	return request({
	  url: '/common/getWarehouseInfo',
	  method: 'get'
	})
}

/**
 * 查询产品/物料
 * type product:产品 item:物料
 */
export function listMdItemProduct(query,type) {
  return request({
    url: '/common/listMdItemProduct/' + type,
    method: 'get',
    params: query
  })
}

/**
 * 查询库存物料
 */
export function materialStockList(query) {
  return request({
    url: '/common/materialStockList',
    method: 'get',
    params: query
  })
}